package summary.oop.demo1;

/**
 * @AUTHOR LYF
 * @DATE 2022/3/5
 * @VERSION 1.0
 * @DESC
 */

interface Interface{
    int a = 1;
    int b = 2;
    int c = 3;

    void method1();
    void method1(int param);
    void method2();
    default void defaultMethod(){
        System.out.println("this is Interface Method");
    }
    static void method4(){
        System.out.println("this is Interface Method");
    }

}

class ClassInstance implements Interface{

    // 重写 --- OverLoad重载
    @Override
    public void method1() {
        System.out.println("Class");
    }

    @Override
    public void method1(int param) {

    }

    @Override
    public void method2() {

    }
}

public class InterfaceDemo {
    public static void main(String[] args) {

    }
}
